package Model;
import java.util.ArrayList;

public class ProductCont
{
   private static ArrayList<Product> products;

   private static ProductCont instance;
   
   private ProductCont() {
       products = new ArrayList<>();
   }

   public static ProductCont getInstance(){
       if(instance == null ){
           instance = new ProductCont();
       }
       return instance;
   }
   
   public static ArrayList<Product> getCont()
   {
       return products;
    }
    
   public static void addProduct(Product p)
   {
       products.add(p);
    }


}
